//package com.salesmanager.core.modules.taobao;
//
//import com.taobao.api.DefaultTaobaoClient;
//import com.taobao.api.TaobaoClient;
//
///**
// * Created by Liutong on 5/17/16.
// * 淘宝客户端构建工厂
// */
//public class TaobaoClientFactory {
//    protected static final String URL = "http://gw.api.taobao.com/router/rest";
//    protected static final String APP_KEY = "23266982";
//    protected static final String SECRET = "e28cd4df8d16262f18d9df8d3be1ad25";
//
//    protected static final String URL_DAYU = "https://eco.taobao.com/router/rest";
//    protected static final String APP_KEY_DAYU = "23365086";
//    protected static final String SECRET_DAYU = "e4fe627603cf8b59578d354a72a13d41";
//
//    private static TaobaoClient baichuanClient;
//
//    private static TaobaoClient dayuClient;
//
//
//    public static TaobaoClient buildBaichuanClient() {
//        if (baichuanClient == null){
//            baichuanClient = new DefaultTaobaoClient(URL, APP_KEY, SECRET);
//        }
//        return baichuanClient;
//    }
//
//    public static TaobaoClient buildDayuClient() {
//        if (dayuClient == null) {
//            dayuClient = new DefaultTaobaoClient(URL_DAYU, APP_KEY_DAYU, SECRET_DAYU);
//        }
//        return dayuClient;
//    }
//}
